https://discord.gg/botpress logo
Hi there. I'm trying the chat API using the javasc...
# 💻developers
g
Hi there. I'm trying the chat API using the javascript library. When I tried the code below, console.log(user) shows undefined. Why is this? I already installed and enabled webhook in my chatbot. const apiUrl = "" const client = new Client({ apiUrl }) const { user, key } = await client.createUser({}) console.log(user) console.log(
User Id: ${user.id}
)